<?php
namespace app\admin\controller\auth;

use app\BaseController;
use app\common\business\auth\CommonAdminLoginLog as serviceModel;

class CommonAdminLoginLog extends BaseController
{

    public function list(){
        $fildes = 'page';
        $receiveData = getData($this->request->post(),$fildes);
        $where = [];
        $limit_start = ($receiveData['page']-1) * env('page_size');
        $data = [
            'lists' => serviceModel::getList($where,$limit_start,env('page_size')),
            'allpage' => serviceModel::getCount($where)
        ];
        jsonSuccess($data);
    }

}
